﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="MLM.AdminCP.Pages.Register"
    meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Registration Form</title>
    <style type="text/css">
        * { margin: 0; padding: 0; }
        body { background: #f1f1f1; font-family: tahoma; font-size: 13px; }
        #Wrapper { width: 800px; margin: 20px auto; border-radius: 10px; background: #fff; border: solid 1px #ccc; box-shadow: 0 0 1px #ddd; }
        #WrapperIn { padding: 20px; color: #444; }
        h1 { text-align: center; text-transform: uppercase; text-shadow: 1px 1px 1px #ccc; color: #333; margin-top: 10px; }
        h2 { text-transform: uppercase; margin-top: 20px; }
        table tr td { padding: 3px; }
        input[type=text] { padding: 3px; border-radius: 3px; border: solid 1px #ccc; width: 200px; }
        input[type=button], input[type=submit] { border: solid 1px #ddd; color: #333; padding: 3px; }
        input[type=button]:hover, input[type=submit]:hover { cursor: pointer; background: #fcf8e5; }
        .line { height: 1px; width: 100%; display: inline-block; border-top: solid 1px #ddd; margin-top: 10px; margin-bottom: 5px; }
        #PrivacyPolicyWrapper { width: 730px; height: 100px; resize: none; border: solid 1px #ccc; overflow: auto; padding: 5px; font-family: "Helvetica Neue" ,Helvetica,Arial,sans-serif; background: #F7F7F9; }
        .ValidationSummary { text-align: left; font-size: 14px; background-color: #F2DEDE; border: solid 1px #EED3D7; color: #B94A48; padding: 10px; margin-bottom: 10px; border-radius: 5px; display: block; }
        .ValidationSummary ul li { list-style-type: square; font-size: 13px; padding: 3px; margin-left: 20px; }
        .SuccessSummary { text-align: left; font-size: 14px; background-color: #DFF0D8; border: solid 1px #D6E9C6; color: #468847; padding: 10px; margin-bottom: 10px; border-radius: 5px; display: block; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server">
    </telerik:RadScriptManager>
    <h1>
        <asp:Label runat="server" ID="lbregistrationform" Text="Registration Form" meta:resourcekey="lbregistrationformResource1"></asp:Label></h1>
    <div id="Wrapper">
        <div id="WrapperIn">
            <table>
                <tr>
                    <td colspan="4">
                        <h2>
                            <asp:Label runat="server" ID="lbInformation" Text="Information" meta:resourcekey="lbInformationResource1"></asp:Label>
                        </h2>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbGender" Text="Gender:" meta:resourcekey="lbGenderResource1"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox runat="server" ID="GenderCombo" meta:resourcekey="GenderComboResource1">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="Male" Value="True" meta:resourcekey="RadComboBoxItemResource1" />
                                <telerik:RadComboBoxItem runat="server" Text="Female" Value="False" meta:resourcekey="RadComboBoxItemResource2" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbRefererID" Text="Referer ID:" meta:resourcekey="lbRefererIDResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="SponsorIDTxt" meta:resourcekey="SponsorIDTxtResource1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbFirstName" Text="First Name:" meta:resourcekey="lbFirstNameResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="FirstNameTxt" meta:resourcekey="FirstNameTxtResource1" />
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="FirstNameTxt" Display="None"
                            SetFocusOnError="True" ErrorMessage="First Name is required!" meta:resourcekey="RequiredFieldValidatorResource1"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbLastName" Text="Last Name:" meta:resourcekey="lbLastNameResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="LastNameTxt" meta:resourcekey="LastNameTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="LastNameTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Last Name is required!" meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbMobile" Text="Mobile:" meta:resourcekey="lbMobileResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="MobileTxt" meta:resourcekey="MobileTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="MobileTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Mobile phone number is required!"
                            meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbHomePhone" Text="Home Phone:" meta:resourcekey="lbHomePhoneResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="HomePhoneTxt" meta:resourcekey="HomePhoneTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="HomePhoneTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Home phone number is required!"
                            meta:resourcekey="RequiredFieldValidator3Resource1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbCountry" Text="Country:" meta:resourcekey="lbCountryResource1"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox runat="server" ID="CountryDDL" DataTextField="Name" DataValueField="CountryID"
                            DataSourceID="GroupCountryEds" Width="207px" AutoPostBack="True" CausesValidation="False"
                            meta:resourcekey="CountryDDLResource1">
                        </telerik:RadComboBox>
                        <asp:EntityDataSource ID="GroupCountryEds" runat="server" ConnectionString="name=MLMDataContext"
                            DefaultContainerName="MLMDataContext" EnableFlattening="False" EntitySetName="Countries"
                            EntityTypeFilter="Country" OrderBy="it.Name" Select="">
                        </asp:EntityDataSource>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbCity" Text="City:" meta:resourcekey="lbCityResource1"></asp:Label>
                    </td>
                    <td>                       
                        <asp:TextBox runat="server" ID="CityTxt" meta:resourcekey="AddressTxtResource1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbAddress" Text="GrAddress:" meta:resourcekey="lbAddressResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="AddressTxt" meta:resourcekey="AddressTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="AddressTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Address is required!" meta:resourcekey="RequiredFieldValidator4Resource1"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbpostalcode" Text="Postal Code:" meta:resourcekey="lbpostalcodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="PostalCodeTxt" meta:resourcekey="PostalCodeTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="PostalCodeTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Postal code is required!"
                            meta:resourcekey="RequiredFieldValidator5Resource1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="idemail" Text="Email:" meta:resourcekey="idemailResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="EmailTxt" meta:resourcekey="EmailTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="EmailTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Email is required!" meta:resourcekey="RequiredFieldValidator6Resource1"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator runat="server" ControlToValidate="EmailTxt" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            Display="None" ErrorMessage="Email format incorrect!" meta:resourcekey="RegularExpressionValidatorResource1"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbdateofbirth" Text="Date Of Birth:" meta:resourcekey="lbdateofbirthResource1"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadDatePicker runat="server" ID="DateOfBirthTxt" Culture="en-US" meta:resourcekey="DateOfBirthTxtResource1">
                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                            </Calendar>
                            <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" Width="">
                            </DateInput>
                            <DatePopupButton ImageUrl="" HoverImageUrl="" CssClass=""></DatePopupButton>
                        </telerik:RadDatePicker>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <h2>
                            <asp:Label runat="server" ID="Label1" Text="Delivery Address" meta:resourcekey="lbInformationResource1323ff"></asp:Label>
                        </h2>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label runat="server" ID="Label4" Text="First Name:" meta:resourcekey="lbFirstNameResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BillFirstNameTxt" meta:resourcekey="FirstNameTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="BillFirstNameTxt" Display="None"
                            SetFocusOnError="True" ErrorMessage="First Name is required!" meta:resourcekey="RequiredFieldValidatorResource1"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label5" Text="Last Name:" meta:resourcekey="lbLastNameResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BillLastNameTxt" meta:resourcekey="LastNameTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="BillLastNameTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Last Name is required!" meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator>
                    </td>
                </tr>               
                <tr>
                    <td>
                        <asp:Label runat="server" ID="Label8" Text="Country:" meta:resourcekey="lbCountryResource1"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox runat="server" ID="BillCountryDDL" DataTextField="Name" DataValueField="CountryID"
                            DataSourceID="EntityDataSource1" Width="207px" AutoPostBack="True" CausesValidation="False"
                            meta:resourcekey="CountryDDLResource1">
                        </telerik:RadComboBox>
                        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=MLMDataContext"
                            DefaultContainerName="MLMDataContext" EnableFlattening="False" EntitySetName="Countries"
                            EntityTypeFilter="Country" OrderBy="it.Name" Select="">
                        </asp:EntityDataSource>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label9" Text="City:" meta:resourcekey="lbCityResource1"></asp:Label>
                    </td>
                    <td>                       
                        <asp:TextBox runat="server" ID="BillCityTxt" meta:resourcekey="AddressTxtResource1" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="Label10" Text="Address:" meta:resourcekey="lbAddressResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BillAddressTxt" meta:resourcekey="AddressTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="BillAddressTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Address is required!" meta:resourcekey="RequiredFieldValidator4Resource1"></asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label11" Text="Postal Code:" meta:resourcekey="lbpostalcodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BillPostalCodeTxt" meta:resourcekey="PostalCodeTxtResource1" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="BillPostalCodeTxt"
                            Display="None" SetFocusOnError="True" ErrorMessage="Postal code is required!"
                            meta:resourcekey="RequiredFieldValidator5Resource1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                <tr style="display: none;">
                    <td colspan="2">
                        <h2>
                            <asp:Label runat="server" ID="lbPaymentInformation" Text="Payment Information" meta:resourcekey="lbPaymentInformationResource1"></asp:Label>
                        </h2>
                    </td>
                </tr>
                <tr style="display: none;">
                    <td>
                        <asp:Label runat="server" ID="lbbankaccount" Text="Bank Account Name:" meta:resourcekey="lbbankaccountResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BankAccountNameTxt" meta:resourcekey="BankAccountNameTxtResource1" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbBankAccountNumber" Text="Bank Account Number:" meta:resourcekey="lbBankAccountNumberResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BankAccountNumberTxt" meta:resourcekey="BankAccountNumberTxtResource1" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <td>
                        <asp:Label runat="server" ID="lbBankCode" Text="Bank Code:" meta:resourcekey="lbBankCodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BankCodeTxt" meta:resourcekey="BankCodeTxtResource1" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbAccountID" Text="Account ID:" meta:resourcekey="lbAccountIDResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="AccountIDTxt" meta:resourcekey="AccountIDTxtResource1" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <td>
                        <asp:Label runat="server" ID="lbBankName" Text="Bank Name:" meta:resourcekey="lbBankNameResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BankNameTxt" meta:resourcekey="BankNameTxtResource1" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbSWIFTCode" Text="SWIFTCode:" meta:resourcekey="lbSWIFTCodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="SWIFTCodeTxt" meta:resourcekey="SWIFTCodeTxtResource1" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <td>
                        <asp:Label runat="server" ID="lbBICCode" Text="BICCode:" meta:resourcekey="lbBICCodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="BICCodeTxt" meta:resourcekey="BICCodeTxtResource1" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbIBANCode" Text="IBANCode:" meta:resourcekey="lbIBANCodeResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="IBANCodeTxt" meta:resourcekey="IBANCodeTxtResource1" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <h2>
                            <asp:Label runat="server" ID="lbprivacepolicy" Text="PRIVACY POLICY" meta:resourcekey="lbprivacepolicyResource1"></asp:Label></h2>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <div id="PrivacyPolicyWrapper">
                            <asp:Literal runat="server" ID="PrivacyPolicyLbl" meta:resourcekey="PrivacyPolicyLblResource1"></asp:Literal>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:CheckBox runat="server" ID="PrivacyPolicyChk" meta:resourcekey="PrivacyPolicyChkResource1" />
                        <asp:Label runat="server" ID="lbihaveread" Text="I have read and agree to the website Privacy Policy"
                            meta:resourcekey="lbihavereadResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="text-align: center;">
                        <div class="line">
                        </div>
                        <asp:ValidationSummary runat="server" ID="ValidationSummary" HeaderText="Error" CssClass="ValidationSummary"
                            meta:resourcekey="ValidationSummaryResource1" />
                        <asp:Label runat="server" ID="ErrorLtr" CssClass="ValidationSummary" Visible="False"
                            meta:resourcekey="ErrorLtrResource1"></asp:Label>
                        <asp:Label runat="server" ID="SuccessLtr" CssClass="SuccessSummary" Visible="False"
                            meta:resourcekey="SuccessLtrResource1"></asp:Label>
                        <asp:Button runat="server" Text="Register" ID="RegisterBtn" meta:resourcekey="RegisterBtnResource1">
                        </asp:Button>
                        <asp:Button runat="server" Text="Reset" ID="ResetBtn" CausesValidation="False" meta:resourcekey="ResetBtnResource1">
                        </asp:Button>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
